<div class="container">
    <div class="row">
                <div class="col-md-offset-1 col-md-10">
                    <div class="panel panel-default" style="min-height:500px;">
                        <div class="panel-heading">
                            <h3>My Notes</h3>
                        </div>
                        <?php foreach($records as $row) { ?>
                        <div class="panel-body" >
                        	
 
                          
                              <div class="media-body">
                                <h5 class="media-heading">Ad Title:</h5>
                                 <p style="margin-top:-25px; margin-left:75px;"><?php echo $row->note_title; ?></p>
                                <h5 class="media-heading">Views:</h5>
                                 <p style="margin-top:-25px; margin-left:55px;"><?php echo $row->downloads; ?></p>
                                <h5 class="media-heading">Posted on:</h5>
                                 <p style="margin-top:-25px; margin-left:95px;"><?php echo $row->timestamp; ?></p>
                                
                                <form  action=" <?php echo base_url('members/edit_notes'); ?>" method="post">
                                    <input  type="hidden" name="notes_id" value="<?php echo $row->notes_id; ?>">
                                    <input type="submit" value="Edit"   class="btn btn-primary margin-sm">
                                </form>
                                  
                                <form style="margin-top:-38px; margin-left:65px;" action=" <?php echo base_url('members/delete_notes'); ?>" method="post">
                                    <input type="hidden" name="notes_id" value="<?php echo $row->notes_id; ?>">
                                     <input type="hidden" name="softcopy" value="<?php echo $row->softcopy; ?>">
                                    <input type="submit"  value="Delete" class="btn btn-primary margin-sm">
                                </form>
                                
                                  <?php if($row->active=='1'){?>
                                  <form style="margin-top:-38px; margin-left:151px;" action=" <?php echo base_url('members/deactive_notes'); ?>" method="post">
                                    <input type="hidden" name="notes_id" value="<?php echo $row->notes_id; ?>">
                                    <input type="submit"  value="Deactivate" class="btn btn-primary margin-sm">
                                </form>
    <?php }  ?> 
                                  <?php if($row->active=='0'){?>
                                  <form style="margin-top:-38px; margin-left:151px;" action=" <?php echo base_url('members/active_notes'); ?>" method="post">
                                    <input type="hidden" name="notes_id" value="<?php echo $row->notes_id; ?>">
                                    <input type="submit"  value="Activate" class="btn btn-primary margin-sm">
                                </form>
    <?php }  ?> 

    
                                  <form style="margin-top:-38px; margin-left:272px;" action=" #" method="post">
                                <input type="button"  value="Share on Facebook" class="btn btn-primary margin-sm">
                                  </form>
                                </div>
                            </div>
                        <hr>
                        <?php } ?>    

        <div class="row">
            <div class="col-md-12">
                <center>
                    <?php echo $this->pagination->create_links(); ?>
                </center>
            </div>
        </div>
                            
                            
                         </div>    
                       </div>
                  </div>
     </div><!--End of Inbox Div -->
   </div>    